package cn.wolfcode.luowowo.scenic.mapper;


import cn.wolfcode.luowowo.scenic.domain.Ticket;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TicketMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Ticket record);

    Ticket selectByPrimaryKey(Long id);

    List<Ticket> selectAll();

    int updateByPrimaryKey(Ticket record);

    List<Ticket> selectByDestIdAndThemeId(@Param("destId") Long destId, @Param("themeId") Long themeId);

    List<Ticket> selectHotTicketTop4();
}